//
//  YXSalesreturnView.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-5.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXSalesreturnView.h"

@implementation YXSalesreturnView
@synthesize calendarBtn,nameLab,dateLab;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor grayColor];
        calendarBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        calendarBtn.enabled = NO;
        calendarBtn.backgroundColor = [UIColor colorWithRed:10.0 green:10.0 blue:10.0 alpha:1];
        calendarBtn.frame = CGRectMake(0, 0, 320, 40);
        calendarBtn.layer.shadowColor = [UIColor blackColor].CGColor;
        calendarBtn.layer.shadowOffset = CGSizeMake(0, 3);
        [self addSubview:calendarBtn];
        
        nameLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 20)];
        nameLab.font = [UIFont boldSystemFontOfSize:16];
        nameLab.textAlignment = NSTextAlignmentCenter;
        [calendarBtn addSubview:nameLab];
        
        dateLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, 320, 20)];
        dateLab.font = [UIFont systemFontOfSize:12];
        dateLab.textAlignment = NSTextAlignmentCenter;
        [calendarBtn addSubview:dateLab];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
